package top.snoweagle.simple.console.security.auth;

import top.snoweagle.simple.console.common.domain.http.RestResponse;
import top.snoweagle.simple.console.common.domain.http.UserSession;
import top.snoweagle.simple.console.security.exception.AuthenticateException;
import top.snoweagle.simple.console.security.model.AuthorizationInfo;

/**
 * Created by snoweagle on 6/7/16.
 */
public interface AuthorizingProxy {
    public UserSession doGetAuthentication(String userName, String password) throws AuthenticateException ;
    public AuthorizationInfo doGetAuthorization(Long userId) ;

    public RestResponse getIndexInfo(UserSession userSession, AuthorizationInfo authInfo) ;

    }
